<template>
  <el-form-item v-show="isShow" label="滚动宽度" :disabled="false">
    <el-input-number
      v-model="optionModel.scrollWidth"
      :min="0"
      :max="10000"
      class="hide-spin-button"
      style="width: 100%"
      :disabled="disabled"
    ></el-input-number>
  </el-form-item>
</template>

<script>
export default {
  name: 'ScrollWidthEditor',
  props: {
    designer: Object,
    selectedWidget: Object,
    optionModel: Object,
    disabled: {
      type: Boolean,
      default: false
    }
  },
  computed: {
    isShow() {
      if (this.optionModel.scrollType === 0 || this.selectedWidget.options.scrollType === 1) {
        return false
      }
      return true
    }
  }
}
</script>

<style scoped></style>
